.class public Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;
.super Lcom/burstly/lib/util/UiSafeWebView;
.source "OrmmaView.java"

# interfaces
.implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
.implements Lcom/burstly/lib/component/networkcomponent/IActivityLifeCycleAware;
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$7;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ScrollEater;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ACTION;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$WebChromeClient;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$WebViewWrapper;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;
    }
.end annotation


# static fields
.field public static final ACTION_KEY:Ljava/lang/String; = "action"

.field private static final AD_DATA:Ljava/lang/String; = "AD_DATA"

.field private static final ATTRS:[I = null

.field private static final BACKGROUND_ID:I = 0x65

.field public static final DIMENSIONS:Ljava/lang/String; = "expand_dimensions"

.field private static final ERROR_ACTION:Ljava/lang/String; = "action"

.field private static final ERROR_MESSAGE:Ljava/lang/String; = "message"

.field private static final EXPAND_PROPERTIES:Ljava/lang/String; = "expand_properties"

.field public static final EXPAND_URL:Ljava/lang/String; = "expand_url"

.field private static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final MESSAGE_CLOSE:I = 0x3e9

.field private static final MESSAGE_EXPAND:I = 0x3ec

.field private static final MESSAGE_HIDE:I = 0x3ea

.field private static final MESSAGE_OPEN:I = 0x3ee

.field private static final MESSAGE_PLAY_AUDIO:I = 0x3f0

.field private static final MESSAGE_PLAY_VIDEO:I = 0x3ef

.field private static final MESSAGE_RAISE_ERROR:I = 0x3f1

.field private static final MESSAGE_RESIZE:I = 0x3e8

.field public static final MESSAGE_SHOW:I = 0x3eb

.field public static final ORMMA_ID:I = 0x66

.field private static final PLACEHOLDER_ID:I = 0x64

.field public static final PLAYER_PROPERTIES:Ljava/lang/String; = "player_properties"

.field private static final RESIZE_HEIGHT:Ljava/lang/String; = "resize_height"

.field private static final RESIZE_WIDTH:Ljava/lang/String; = "resize_width"

.field private static final TAG:Ljava/lang/String; = "OrmmaView"

.field public static final VERSION:Ljava/lang/String; = "1.1"

.field static sHtmlVideoIsPlaying:Z

.field private static sPlayer:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;


# instance fields
.field private mContentViewHeight:I

.field private mDefaultHeight:I

.field private mDefaultWidth:I

.field private mDensity:F

.field private mGestureDetector:Landroid/view/GestureDetector;

.field private mGotLayoutParams:Z

.field final mHandler:Landroid/os/Handler;

.field private mHtmlData:Ljava/lang/String;

.field volatile mHtmlReady:Z

.field private mIndex:I

.field private mInitLayoutHeight:I

.field private mInitLayoutWidth:I

.field volatile mInitialized:Z

.field private mKeyboardOut:Z

.field private mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

.field private mPlacementType:Ljava/lang/String;

.field private final mRegisteredProtocols:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mTimeOut:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;

.field private mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

.field private mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

.field final mWebViewClient:Landroid/webkit/WebViewClient;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 103
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 149
    const/4 v0, 0x2

    new-array v0, v0, [I

    fill-array-data v0, :array_0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->ATTRS:[I

    return-void

    nop

    :array_0
    .array-data 0x4
        0x1ft 0x1t 0x1t 0x1t
        0x20t 0x1t 0x1t 0x1t
    .end array-data
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 617
    invoke-direct {p0, p1}, Lcom/burstly/lib/util/UiSafeWebView;-><init>(Landroid/content/Context;)V

    .line 412
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mWebViewClient:Landroid/webkit/WebViewClient;

    .line 539
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    .line 581
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mRegisteredProtocols:Ljava/util/HashSet;

    .line 802
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$2;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$2;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    .line 893
    const-string v0, "inline"

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mPlacementType:Ljava/lang/String;

    .line 618
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->initialize()V

    .line 619
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 6
    .parameter "context"
    .parameter "set"

    .prologue
    const/4 v5, -0x1

    .line 779
    invoke-direct {p0, p1}, Lcom/burstly/lib/util/UiSafeWebView;-><init>(Landroid/content/Context;)V

    .line 412
    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;

    invoke-direct {v3, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mWebViewClient:Landroid/webkit/WebViewClient;

    .line 539
    sget-object v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    .line 581
    new-instance v3, Ljava/util/HashSet;

    invoke-direct {v3}, Ljava/util/HashSet;-><init>()V

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mRegisteredProtocols:Ljava/util/HashSet;

    .line 802
    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$2;

    invoke-direct {v3, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$2;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    .line 893
    const-string v3, "inline"

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mPlacementType:Ljava/lang/String;

    .line 780
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->initialize()V

    .line 781
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v3

    sget-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->ATTRS:[I

    invoke-virtual {v3, p2, v4}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 782
    .local v0, a:Landroid/content/res/TypedArray;
    const/4 v3, 0x0

    invoke-virtual {v0, v3, v5}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v2

    .line 783
    .local v2, w:I
    const/4 v3, 0x1

    invoke-virtual {v0, v3, v5}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v1

    .line 784
    .local v1, h:I
    if-lez v2, :cond_0

    if-lez v1, :cond_0

    .line 785
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    invoke-virtual {v3, v2, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;->setMaxSize(II)V

    .line 787
    :cond_0
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 788
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;)V
    .locals 1
    .parameter "context"
    .parameter "listener"

    .prologue
    .line 597
    invoke-direct {p0, p1}, Lcom/burstly/lib/util/UiSafeWebView;-><init>(Landroid/content/Context;)V

    .line 412
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mWebViewClient:Landroid/webkit/WebViewClient;

    .line 539
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    .line 581
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mRegisteredProtocols:Ljava/util/HashSet;

    .line 802
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$2;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$2;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    .line 893
    const-string v0, "inline"

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mPlacementType:Ljava/lang/String;

    .line 598
    invoke-virtual {p0, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;)V

    .line 599
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->initialize()V

    .line 600
    return-void
.end method

.method static synthetic access$000()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 93
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$102(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 93
    iput p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDefaultHeight:I

    return p1
.end method

.method static synthetic access$200(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 93
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F

    return v0
.end method

.method static synthetic access$302(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 93
    iput p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDefaultWidth:I

    return p1
.end method

.method static synthetic access$400(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;
    .locals 1
    .parameter "x0"

    .prologue
    .line 93
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    return-object v0
.end method

.method static synthetic access$500(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Landroid/net/Uri;)Z
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 93
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->isRegisteredProtocol(Landroid/net/Uri;)Z

    move-result v0

    return v0
.end method

.method static synthetic access$600(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;
    .locals 1
    .parameter "x0"

    .prologue
    .line 93
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    return-object v0
.end method

.method static synthetic access$602(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;)Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 93
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    return-object p1
.end method

.method static synthetic access$700(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 93
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->closeResized()V

    return-void
.end method

.method static synthetic access$800(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 93
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mPlacementType:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$900(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Landroid/os/Bundle;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 93
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->doExpand(Landroid/os/Bundle;)V

    return-void
.end method

.method private changeContentArea(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;)Landroid/widget/FrameLayout;
    .locals 12
    .parameter "dimensions"

    .prologue
    const/4 v11, 0x0

    .line 902
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getRootView()Landroid/view/View;

    move-result-object v9

    const v10, 0x1020002

    invoke-virtual {v9, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/FrameLayout;

    .line 904
    .local v3, contentView:Landroid/widget/FrameLayout;
    if-nez v3, :cond_0

    .line 905
    const/4 v0, 0x0

    .line 943
    :goto_0
    return-object v0

    .line 908
    :cond_0
    invoke-static {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->disableFocusForChildren(Landroid/view/ViewGroup;)V

    .line 909
    const/4 v9, 0x1

    invoke-virtual {p0, v9}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setFocusableInTouchMode(Z)V

    .line 910
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    check-cast v2, Landroid/view/View;

    .line 911
    .local v2, clickAwareParent:Landroid/view/View;
    invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v5

    check-cast v5, Landroid/view/ViewGroup;

    .line 913
    .local v5, grandParent:Landroid/view/ViewGroup;
    const/4 v6, 0x0

    .line 914
    .local v6, index:I
    invoke-virtual {v5}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v4

    .line 915
    .local v4, count:I
    const/4 v6, 0x0

    :goto_1
    if-ge v6, v4, :cond_1

    .line 916
    invoke-virtual {v5, v6}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v9

    if-ne v9, v2, :cond_2

    .line 920
    :cond_1
    iput v6, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mIndex:I

    .line 922
    new-instance v8, Landroid/widget/FrameLayout;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-direct {v8, v9}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 923
    .local v8, placeHolder:Landroid/widget/FrameLayout;
    const/16 v9, 0x64

    invoke-virtual {v8, v9}, Landroid/widget/FrameLayout;->setId(I)V

    .line 924
    new-instance v7, Landroid/view/ViewGroup$LayoutParams;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getWidth()I

    move-result v9

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getHeight()I

    move-result v10

    invoke-direct {v7, v9, v10}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 925
    .local v7, lp:Landroid/view/ViewGroup$LayoutParams;
    invoke-virtual {v5, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 926
    invoke-virtual {v5, v8, v6, v7}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 928
    new-instance v0, Landroid/widget/FrameLayout;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-direct {v0, v9}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 930
    .local v0, backGround:Landroid/widget/FrameLayout;
    const/16 v9, 0x65

    invoke-virtual {v0, v9}, Landroid/widget/FrameLayout;->setId(I)V

    .line 931
    iget v9, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    iget v10, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    invoke-virtual {v0, v9, v10, v11, v11}, Landroid/widget/FrameLayout;->setPadding(IIII)V

    .line 932
    new-instance v9, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$3;

    invoke-direct {v9, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$3;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    invoke-virtual {v0, v9}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 940
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->createLayoutParams(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v1

    .line 941
    .local v1, bgfl:Landroid/widget/FrameLayout$LayoutParams;
    invoke-virtual {v0, v2, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 942
    invoke-virtual {v3, v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 915
    .end local v0           #backGround:Landroid/widget/FrameLayout;
    .end local v1           #bgfl:Landroid/widget/FrameLayout$LayoutParams;
    .end local v7           #lp:Landroid/view/ViewGroup$LayoutParams;
    .end local v8           #placeHolder:Landroid/widget/FrameLayout;
    :cond_2
    add-int/lit8 v6, v6, 0x1

    goto :goto_1
.end method

.method private static changeFocusable(Landroid/view/ViewGroup;Z)V
    .locals 4
    .parameter "root"
    .parameter "allowFocus"

    .prologue
    .line 971
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v1

    .line 973
    .local v1, childrenCount:I
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    if-ge v2, v1, :cond_2

    .line 974
    invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 975
    .local v0, child:Landroid/view/View;
    instance-of v3, v0, Landroid/view/ViewGroup;

    if-eqz v3, :cond_1

    .line 976
    check-cast v0, Landroid/view/ViewGroup;

    .end local v0           #child:Landroid/view/View;
    if-eqz p1, :cond_0

    const/high16 v3, 0x2

    :goto_1
    invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->setDescendantFocusability(I)V

    .line 973
    :goto_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 976
    :cond_0
    const/high16 v3, 0x6

    goto :goto_1

    .line 979
    .restart local v0       #child:Landroid/view/View;
    :cond_1
    invoke-virtual {v0, p1}, Landroid/view/View;->setFocusable(Z)V

    goto :goto_2

    .line 982
    .end local v0           #child:Landroid/view/View;
    :cond_2
    return-void
.end method

.method private closeResized()V
    .locals 6

    .prologue
    .line 1069
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    if-eqz v1, :cond_0

    .line 1070
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    invoke-interface {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;->onResizeClose()Z

    .line 1072
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "window.ormmaview.fireChangeEvent({ state: \'default\', size: { width: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDefaultWidth:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "height: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDefaultHeight:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "}"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "});"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 1074
    .local v0, injection:Ljava/lang/String;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "OrmmaView"

    const-string v3, "closeResized: injection: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1075
    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->injectJavaScript(Ljava/lang/String;)V

    .line 1076
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->resetLayout()V

    .line 1077
    return-void
.end method

.method private createLayoutParams(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;)Landroid/widget/FrameLayout$LayoutParams;
    .locals 5
    .parameter "dimensions"

    .prologue
    .line 992
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v2

    .line 993
    .local v2, fillparentVal:I
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 994
    .local v0, bgfl:Landroid/widget/FrameLayout$LayoutParams;
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    iget v3, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    iget v4, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    invoke-direct {v1, v3, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 995
    .local v1, expandedLp:Landroid/widget/FrameLayout$LayoutParams;
    iget v3, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    iput v3, v1, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I

    .line 996
    iget v3, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    iput v3, v1, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 997
    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 998
    return-object v0
.end method

.method private static disableFocusForChildren(Landroid/view/ViewGroup;)V
    .locals 1
    .parameter "root"

    .prologue
    .line 952
    const/4 v0, 0x0

    invoke-static {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->changeFocusable(Landroid/view/ViewGroup;Z)V

    .line 953
    return-void
.end method

.method private doExpand(Landroid/os/Bundle;)V
    .locals 10
    .parameter "data"

    .prologue
    .line 1007
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    sget-object v6, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    if-eq v5, v6, :cond_1

    .line 1008
    const-string v5, "expand_dimensions"

    invoke-virtual {p1, v5}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;

    .line 1009
    .local v1, dimensions:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;
    const-string v5, "expand_url"

    invoke-virtual {p1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 1010
    .local v4, url:Ljava/lang/String;
    const-string v5, "expand_properties"

    invoke-virtual {p1, v5}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v3

    check-cast v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;

    .line 1011
    .local v3, properties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;
    invoke-static {v4}, Landroid/webkit/URLUtil;->isValidUrl(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 1012
    invoke-virtual {p0, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->loadUrl(Ljava/lang/String;)V

    .line 1014
    :cond_0
    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->changeContentArea(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;)Landroid/widget/FrameLayout;

    move-result-object v0

    .line 1015
    .local v0, backGround:Landroid/widget/FrameLayout;
    if-nez v0, :cond_2

    .line 1030
    .end local v0           #backGround:Landroid/widget/FrameLayout;
    .end local v1           #dimensions:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;
    .end local v3           #properties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;
    .end local v4           #url:Ljava/lang/String;
    :cond_1
    :goto_0
    return-void

    .line 1018
    .restart local v0       #backGround:Landroid/widget/FrameLayout;
    .restart local v1       #dimensions:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;
    .restart local v3       #properties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;
    .restart local v4       #url:Ljava/lang/String;
    :cond_2
    invoke-direct {p0, v3, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setCustomBackground(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;Landroid/widget/FrameLayout;)V

    .line 1019
    invoke-direct {p0, v3, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setCustomCloseButton(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;Landroid/widget/FrameLayout;)V

    .line 1020
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "window.ormmaview.fireChangeEvent({ state: \'expanded\', size: { width: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget v6, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    int-to-float v6, v6

    iget v7, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F

    div-float/2addr v6, v7

    float-to-int v6, v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ", height: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget v6, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    int-to-float v6, v6

    iget v7, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F

    div-float/2addr v6, v7

    float-to-int v6, v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "} });"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 1022
    .local v2, injection:Ljava/lang/String;
    sget-object v5, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v6, "OrmmaView"

    const-string v7, "doExpand: injection: {0}"

    const/4 v8, 0x1

    new-array v8, v8, [Ljava/lang/Object;

    const/4 v9, 0x0

    aput-object v2, v8, v9

    invoke-virtual {v5, v6, v7, v8}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1023
    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->injectJavaScript(Ljava/lang/String;)V

    .line 1024
    const/16 v5, 0x82

    invoke-virtual {p0, v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->requestFocus(I)Z

    .line 1025
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    if-eqz v5, :cond_3

    .line 1026
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    invoke-interface {v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;->onExpand()Z

    .line 1028
    :cond_3
    sget-object v5, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    iput-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    goto :goto_0
.end method

.method private static enableFocusForChildren(Landroid/view/ViewGroup;)V
    .locals 1
    .parameter "root"

    .prologue
    .line 961
    const/4 v0, 0x1

    invoke-static {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->changeFocusable(Landroid/view/ViewGroup;Z)V

    .line 962
    return-void
.end method

.method private getContentViewHeight()I
    .locals 3

    .prologue
    .line 1129
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getRootView()Landroid/view/View;

    move-result-object v1

    const v2, 0x1020002

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 1130
    .local v0, contentView:Landroid/view/View;
    if-eqz v0, :cond_0

    .line 1131
    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v1

    .line 1133
    :goto_0
    return v1

    :cond_0
    const/4 v1, -0x1

    goto :goto_0
.end method

.method static declared-synchronized getPlayer(Landroid/content/Context;)Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;
    .locals 2
    .parameter "context"

    .prologue
    .line 1568
    const-class v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->sPlayer:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;

    if-eqz v0, :cond_0

    .line 1569
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->sPlayer:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->releasePlayer()V

    .line 1571
    :cond_0
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->sPlayer:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;

    .line 1572
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->sPlayer:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v1

    return-object v0

    .line 1568
    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method private initialize()V
    .locals 8
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    .prologue
    const/4 v7, 0x0

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 1084
    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0xb

    if-lt v3, v4, :cond_0

    .line 1085
    invoke-virtual {p0, v6, v7}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setLayerType(ILandroid/graphics/Paint;)V

    .line 1087
    :cond_0
    invoke-virtual {p0, v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setScrollContainer(Z)V

    .line 1088
    invoke-virtual {p0, v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setVerticalScrollBarEnabled(Z)V

    .line 1089
    invoke-virtual {p0, v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setHorizontalScrollBarEnabled(Z)V

    .line 1090
    const/16 v3, 0x82

    invoke-virtual {p0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->requestFocus(I)Z

    .line 1091
    invoke-virtual {p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 1092
    new-instance v3, Landroid/view/GestureDetector;

    new-instance v4, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ScrollEater;

    invoke-direct {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ScrollEater;-><init>()V

    invoke-direct {v3, v4}, Landroid/view/GestureDetector;-><init>(Landroid/view/GestureDetector$OnGestureListener;)V

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mGestureDetector:Landroid/view/GestureDetector;

    .line 1093
    new-instance v1, Landroid/util/DisplayMetrics;

    invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V

    .line 1094
    .local v1, metrics:Landroid/util/DisplayMetrics;
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 1095
    .local v0, context:Landroid/content/Context;
    const-string v3, "window"

    invoke-virtual {v0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/view/WindowManager;

    .line 1096
    .local v2, wm:Landroid/view/WindowManager;
    invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v3

    invoke-virtual {v3, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 1097
    iget v3, v1, Landroid/util/DisplayMetrics;->density:F

    iput v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F

    .line 1098
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 1099
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/webkit/WebSettings;->setPluginsEnabled(Z)V

    .line 1100
    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    invoke-direct {v3, p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Landroid/content/Context;)V

    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    .line 1101
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    const-string v4, "ORMMAUtilityControllerBridge"

    invoke-virtual {p0, v3, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1102
    new-instance v3, Landroid/webkit/WebViewClient;

    invoke-direct {v3}, Landroid/webkit/WebViewClient;-><init>()V

    invoke-virtual {p0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 1103
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContentViewHeight()I

    move-result v3

    iput v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mContentViewHeight:I

    .line 1104
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v3

    invoke-virtual {v3, p0}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    .line 1105
    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    const/4 v4, 0x7

    if-lt v3, v4, :cond_1

    .line 1106
    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$WebChromeClient;

    invoke-direct {v3, p0, v7}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$WebChromeClient;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;)V

    invoke-virtual {p0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 1108
    :cond_1
    return-void
.end method

.method private isRegisteredProtocol(Landroid/net/Uri;)Z
    .locals 5
    .parameter "uri"

    .prologue
    const/4 v3, 0x0

    .line 664
    invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v2

    .line 665
    .local v2, scheme:Ljava/lang/String;
    if-nez v2, :cond_1

    .line 673
    :cond_0
    :goto_0
    return v3

    .line 668
    :cond_1
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mRegisteredProtocols:Ljava/util/HashSet;

    invoke-virtual {v4}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :cond_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 669
    .local v1, protocol:Ljava/lang/String;
    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 670
    const/4 v3, 0x1

    goto :goto_0
.end method

.method private reset()V
    .locals 2

    .prologue
    .line 745
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    if-ne v0, v1, :cond_1

    .line 746
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->closeExpanded()V

    .line 750
    :cond_0
    :goto_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->invalidate()V

    .line 751
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;->deleteOldAds()V

    .line 752
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;->stopAllListeners()V

    .line 753
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->resetLayout()V

    .line 754
    return-void

    .line 747
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->RESIZED:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    if-ne v0, v1, :cond_0

    .line 748
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->closeResized()V

    goto :goto_0
.end method

.method private resetLayout()V
    .locals 2

    .prologue
    .line 1428
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 1429
    .local v0, lp:Landroid/view/ViewGroup$LayoutParams;
    iget-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mGotLayoutParams:Z

    if-eqz v1, :cond_0

    .line 1430
    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mInitLayoutHeight:I

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 1431
    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mInitLayoutWidth:I

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 1433
    :cond_0
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setVisibility(I)V

    .line 1434
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->requestLayout()V

    .line 1435
    return-void
.end method

.method private setCustomBackground(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;Landroid/widget/FrameLayout;)V
    .locals 4
    .parameter "properties"
    .parameter "backGround"

    .prologue
    .line 1059
    iget-boolean v1, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;->useBackground:Z

    if-eqz v1, :cond_0

    .line 1060
    iget v1, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;->backgroundColor:I

    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;->backgroundOpacity:F

    const/high16 v3, 0x437f

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/high16 v3, 0x1000

    mul-int/2addr v2, v3

    or-int v0, v1, v2

    .line 1061
    .local v0, color:I
    invoke-virtual {p2, v0}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V

    .line 1063
    .end local v0           #color:I
    :cond_0
    return-void
.end method

.method private setCustomCloseButton(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;Landroid/widget/FrameLayout;)V
    .locals 5
    .parameter "properties"
    .parameter "backGround"

    .prologue
    .line 1037
    iget-boolean v1, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;->useCusomClose:Z

    if-eqz v1, :cond_0

    .line 1038
    new-instance v0, Landroid/widget/Button;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .line 1039
    .local v0, close:Landroid/widget/Button;
    const-string v1, "Close ad"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 1040
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v2

    const/high16 v3, 0x4270

    iget v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    invoke-direct {v1, v2, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p2, v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1041
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$4;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$4;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1050
    .end local v0           #close:Landroid/widget/Button;
    :cond_0
    return-void
.end method


# virtual methods
.method public addJavascriptObject(Ljava/lang/Object;Ljava/lang/String;)V
    .locals 0
    .parameter "obj"
    .parameter "name"

    .prologue
    .line 1117
    invoke-virtual {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1118
    return-void
.end method

.method public clearView()V
    .locals 0

    .prologue
    .line 737
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->reset()V

    .line 738
    invoke-super {p0}, Lcom/burstly/lib/util/UiSafeWebView;->clearView()V

    .line 739
    return-void
.end method

.method public close()V
    .locals 2

    .prologue
    .line 1189
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    const/16 v1, 0x3e9

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 1190
    return-void
.end method

.method protected declared-synchronized closeExpanded()V
    .locals 6

    .prologue
    .line 1140
    monitor-enter p0

    :try_start_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->resetContents()V

    .line 1141
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "window.ormmaview.fireChangeEvent({ state: \'default\', size: { width: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDefaultWidth:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", height: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDefaultHeight:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "}});"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 1143
    .local v0, injection:Ljava/lang/String;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "OrmmaView"

    const-string v3, "closeExpanded: injection: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1144
    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->injectJavaScript(Ljava/lang/String;)V

    .line 1145
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    .line 1146
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setVisibility(I)V

    .line 1147
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    if-eqz v1, :cond_0

    .line 1148
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    invoke-interface {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;->onExpandClose()Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1150
    :cond_0
    monitor-exit p0

    return-void

    .line 1140
    .end local v0           #injection:Ljava/lang/String;
    :catchall_0
    move-exception v1

    monitor-exit p0

    throw v1
.end method

.method protected closeOpened(Landroid/view/View;)V
    .locals 1
    .parameter "openedFrame"

    .prologue
    .line 1158
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1159
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->requestLayout()V

    .line 1160
    return-void
.end method

.method public deregisterProtocol(Ljava/lang/String;)V
    .locals 2
    .parameter "protocol"

    .prologue
    .line 651
    if-eqz p1, :cond_0

    .line 652
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mRegisteredProtocols:Ljava/util/HashSet;

    invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->remove(Ljava/lang/Object;)Z

    .line 654
    :cond_0
    return-void
.end method

.method public expand(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;Ljava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;)V
    .locals 4
    .parameter "dimensions"
    .parameter "url"
    .parameter "properties"

    .prologue
    .line 1222
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    const/16 v3, 0x3ec

    invoke-virtual {v2, v3}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    .line 1223
    .local v1, msg:Landroid/os/Message;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 1224
    .local v0, data:Landroid/os/Bundle;
    const-string v2, "expand_dimensions"

    invoke-virtual {v0, v2, p1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 1225
    const-string v2, "expand_url"

    invoke-virtual {v0, v2, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1226
    const-string v2, "expand_properties"

    invoke-virtual {v0, v2, p3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 1227
    invoke-virtual {v1, v0}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 1228
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1229
    return-void
.end method

.method fireReadyEvent()V
    .locals 2

    .prologue
    .line 1482
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->isShown()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mInitialized:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHtmlReady:Z

    if-eqz v0, :cond_0

    .line 1483
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;->init(F)V

    .line 1484
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mInitialized:Z

    .line 1486
    :cond_0
    return-void
.end method

.method public getConnectivityManager()Landroid/net/ConnectivityManager;
    .locals 2

    .prologue
    .line 1210
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 1211
    .local v0, context:Landroid/content/Context;
    const-string v1, "connectivity"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    return-object v1
.end method

.method public getJsHandler()Landroid/os/Handler;
    .locals 1

    .prologue
    .line 1581
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method public getPlacementType()Ljava/lang/String;
    .locals 1

    .prologue
    .line 1620
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mPlacementType:Ljava/lang/String;

    return-object v0
.end method

.method public getSize()Ljava/lang/String;
    .locals 3

    .prologue
    .line 1463
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "{ width: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getWidth()I

    move-result v1

    int-to-float v1, v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F

    div-float/2addr v1, v2

    float-to-int v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "height: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getHeight()I

    move-result v1

    int-to-float v1, v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F

    div-float/2addr v1, v2

    float-to-int v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "}"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getState()Ljava/lang/String;
    .locals 1
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 1167
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public hide()V
    .locals 2

    .prologue
    .line 1196
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    const/16 v1, 0x3ea

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 1197
    return-void
.end method

.method public injectJavaScript(Ljava/lang/String;)V
    .locals 2
    .parameter "scriptToInject"

    .prologue
    .line 682
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->wasDestroyed()Z

    move-result v0

    if-nez v0, :cond_0

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 683
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "javascript:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->loadUrl(Ljava/lang/String;)V

    .line 685
    :cond_0
    return-void
.end method

.method public isExpanded()Z
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 1552
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mViewState:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ViewState;

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 7
    .parameter "baseUrl"
    .parameter "data"
    .parameter "mimeType"
    .parameter "encoding"
    .parameter "historyUrl"

    .prologue
    const-wide/16 v2, 0x7d0

    const/4 v1, 0x0

    .line 759
    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mInitialized:Z

    .line 760
    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHtmlReady:Z

    .line 761
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->reset()V

    .line 762
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mTimeOut:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;

    if-eqz v1, :cond_0

    .line 763
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mTimeOut:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;->cancel()Z

    .line 765
    :cond_0
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mTimeOut:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;

    .line 766
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    const-string v4, "mraid=ormma;"

    invoke-virtual {v1, p2, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;->prepareWrappedContentString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHtmlData:Ljava/lang/String;

    .line 767
    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    .line 768
    .local v0, timer:Ljava/util/Timer;
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mTimeOut:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$TimeOut;

    move-wide v4, v2

    invoke-virtual/range {v0 .. v5}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;JJ)V

    .line 769
    const-string v2, ""

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHtmlData:Ljava/lang/String;

    move-object v1, p0

    move-object v4, p3

    move-object v5, p4

    move-object v6, p5

    invoke-super/range {v1 .. v6}, Lcom/burstly/lib/util/UiSafeWebView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 770
    return-void
.end method

.method protected onAttachedToWindow()V
    .locals 2

    .prologue
    .line 1468
    invoke-super {p0}, Lcom/burstly/lib/util/UiSafeWebView;->onAttachedToWindow()V

    .line 1469
    iget-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mGotLayoutParams:Z

    if-nez v1, :cond_0

    .line 1470
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 1471
    .local v0, lp:Landroid/view/ViewGroup$LayoutParams;
    iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    iput v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mInitLayoutHeight:I

    .line 1472
    iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    iput v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mInitLayoutWidth:I

    .line 1473
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mGotLayoutParams:Z

    .line 1475
    .end local v0           #lp:Landroid/view/ViewGroup$LayoutParams;
    :cond_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->fireReadyEvent()V

    .line 1476
    return-void
.end method

.method public onDestroy(Landroid/app/Activity;)V
    .locals 1
    .parameter "curerntActivity"

    .prologue
    .line 1586
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->wasDestroyed()Z

    move-result v0

    if-nez v0, :cond_0

    .line 1587
    invoke-super {p0, p1}, Lcom/burstly/lib/util/UiSafeWebView;->onDestroy(Landroid/app/Activity;)V

    .line 1588
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->stopLoading()V

    .line 1589
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->destroy()V

    .line 1591
    :cond_0
    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 1

    .prologue
    .line 1557
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;->stopAllListeners()V

    .line 1558
    invoke-super {p0}, Lcom/burstly/lib/util/UiSafeWebView;->onDetachedFromWindow()V

    .line 1559
    return-void
.end method

.method public onGlobalLayout()V
    .locals 4

    .prologue
    .line 1440
    iget-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mKeyboardOut:Z

    .line 1441
    .local v1, state:Z
    iget-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mKeyboardOut:Z

    if-nez v2, :cond_0

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mContentViewHeight:I

    if-ltz v2, :cond_0

    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContentViewHeight()I

    move-result v2

    if-ltz v2, :cond_0

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mContentViewHeight:I

    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContentViewHeight()I

    move-result v3

    if-eq v2, v3, :cond_0

    .line 1443
    const/4 v1, 0x1

    .line 1444
    const-string v0, "window.ormmaview.fireChangeEvent({ keyboardState: true});"

    .line 1445
    .local v0, injection:Ljava/lang/String;
    const-string v2, "window.ormmaview.fireChangeEvent({ keyboardState: true});"

    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->injectJavaScript(Ljava/lang/String;)V

    .line 1447
    .end local v0           #injection:Ljava/lang/String;
    :cond_0
    iget-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mKeyboardOut:Z

    if-eqz v2, :cond_1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mContentViewHeight:I

    if-ltz v2, :cond_1

    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContentViewHeight()I

    move-result v2

    if-ltz v2, :cond_1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mContentViewHeight:I

    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContentViewHeight()I

    move-result v3

    if-ne v2, v3, :cond_1

    .line 1449
    const/4 v1, 0x0

    .line 1450
    const-string v0, "window.ormmaview.fireChangeEvent({ keyboardState: false});"

    .line 1451
    .restart local v0       #injection:Ljava/lang/String;
    const-string v2, "window.ormmaview.fireChangeEvent({ keyboardState: false});"

    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->injectJavaScript(Ljava/lang/String;)V

    .line 1453
    .end local v0           #injection:Ljava/lang/String;
    :cond_1
    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mContentViewHeight:I

    if-gez v2, :cond_2

    .line 1454
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContentViewHeight()I

    move-result v2

    iput v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mContentViewHeight:I

    .line 1456
    :cond_2
    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mKeyboardOut:Z

    .line 1457
    return-void
.end method

.method public onKey(Landroid/app/Activity;ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "activity"
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 1595
    const/4 v0, 0x0

    return v0
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "v"
    .parameter "event"

    .prologue
    .line 1603
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 1611
    :cond_0
    :goto_0
    const/4 v0, 0x0

    return v0

    .line 1606
    :pswitch_0
    invoke-virtual {p1}, Landroid/view/View;->hasFocus()Z

    move-result v0

    if-nez v0, :cond_0

    .line 1607
    invoke-virtual {p1}, Landroid/view/View;->requestFocus()Z

    goto :goto_0

    .line 1603
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 2
    .parameter "ev"

    .prologue
    .line 792
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mGestureDetector:Landroid/view/GestureDetector;

    invoke-virtual {v1, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    .line 793
    .local v0, ret:Z
    if-eqz v0, :cond_0

    .line 794
    const/4 v1, 0x3

    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->setAction(I)V

    .line 796
    :cond_0
    invoke-super {p0, p1}, Lcom/burstly/lib/util/UiSafeWebView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    return v1
.end method

.method onViewableChanged(I)V
    .locals 3
    .parameter "visibility"

    .prologue
    .line 1500
    iget-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mInitialized:Z

    if-eqz v1, :cond_0

    .line 1501
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "window.ormmaview.fireViewableChangedEvent("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    if-nez p1, :cond_1

    const/4 v1, 0x1

    :goto_0
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ");"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 1502
    .local v0, injection:Ljava/lang/String;
    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->injectJavaScript(Ljava/lang/String;)V

    .line 1504
    .end local v0           #injection:Ljava/lang/String;
    :cond_0
    return-void

    .line 1501
    :cond_1
    const/4 v1, 0x0

    goto :goto_0
.end method

.method protected onVisibilityChanged(Landroid/view/View;I)V
    .locals 0
    .parameter "changedView"
    .parameter "visibility"
    .annotation build Landroid/annotation/TargetApi;
        value = 0x8
    .end annotation

    .prologue
    .line 1491
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->fireReadyEvent()V

    .line 1492
    invoke-virtual {p0, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->onViewableChanged(I)V

    .line 1493
    invoke-super {p0, p1, p2}, Lcom/burstly/lib/util/UiSafeWebView;->onVisibilityChanged(Landroid/view/View;I)V

    .line 1494
    return-void
.end method

.method public open(Ljava/lang/String;ZZZ)V
    .locals 6
    .parameter "url"
    .parameter "back"
    .parameter "forward"
    .parameter "refresh"

    .prologue
    .line 1240
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    if-eqz v1, :cond_0

    .line 1241
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    invoke-interface {v1, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;->onClick(Ljava/lang/String;)V

    .line 1248
    :goto_0
    return-void

    .line 1243
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 1244
    .local v0, intent:Landroid/content/Intent;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "OrmmaView"

    const-string v3, "open: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object p1, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1245
    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1246
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method public playAudio(Ljava/lang/String;ZZZZLjava/lang/String;Ljava/lang/String;)V
    .locals 12
    .parameter "url"
    .parameter "autoPlay"
    .parameter "controls"
    .parameter "loop"
    .parameter "position"
    .parameter "startStyle"
    .parameter "stopStyle"

    .prologue
    .line 1280
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-direct {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;-><init>()V

    .line 1281
    .local v0, properties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;
    const/4 v1, 0x0

    move v2, p2

    move v3, p3

    move/from16 v4, p5

    move/from16 v5, p4

    move-object/from16 v6, p6

    move-object/from16 v7, p7

    invoke-virtual/range {v0 .. v7}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->setProperties(ZZZZZLjava/lang/String;Ljava/lang/String;)V

    .line 1282
    new-instance v8, Landroid/os/Bundle;

    invoke-direct {v8}, Landroid/os/Bundle;-><init>()V

    .line 1283
    .local v8, data:Landroid/os/Bundle;
    const-string v1, "action"

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ACTION;->PLAY_AUDIO:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ACTION;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ACTION;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1284
    const-string v1, "expand_url"

    invoke-virtual {v8, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1285
    const-string v1, "player_properties"

    invoke-virtual {v8, v1, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 1286
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isFullScreen()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1288
    :try_start_0
    new-instance v10, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaActionHandler;

    invoke-direct {v10, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1289
    .local v10, intent:Landroid/content/Intent;
    invoke-virtual {v10, v8}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 1290
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v10}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1300
    .end local v10           #intent:Landroid/content/Intent;
    :goto_0
    return-void

    .line 1292
    :catch_0
    move-exception v9

    .line 1293
    .local v9, e:Landroid/content/ActivityNotFoundException;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "OrmmaView"

    invoke-virtual {v1, v2, v9}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0

    .line 1296
    .end local v9           #e:Landroid/content/ActivityNotFoundException;
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    const/16 v2, 0x3f0

    invoke-virtual {v1, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v11

    .line 1297
    .local v11, msg:Landroid/os/Message;
    invoke-virtual {v11, v8}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 1298
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    invoke-virtual {v1, v11}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method

.method public playAudioImpl(Landroid/os/Bundle;)V
    .locals 6
    .parameter "data"

    .prologue
    const/4 v5, 0x1

    .line 1256
    const-string v4, "player_properties"

    invoke-virtual {p1, v4}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v2

    check-cast v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    .line 1257
    .local v2, properties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;
    const-string v4, "expand_url"

    invoke-virtual {p1, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 1258
    .local v3, url:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v1

    .line 1259
    .local v1, context:Landroid/content/Context;
    invoke-static {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getPlayer(Landroid/content/Context;)Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;

    move-result-object v0

    .line 1260
    .local v0, audioPlayer:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;
    invoke-virtual {v0, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setPlayData(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;Ljava/lang/String;)V

    .line 1261
    new-instance v4, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v4, v5, v5}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1262
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getParent()Landroid/view/ViewParent;

    move-result-object v4

    check-cast v4, Landroid/view/ViewGroup;

    invoke-virtual {v4, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 1263
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->playAudio()V

    .line 1264
    return-void
.end method

.method public playVideo(Ljava/lang/String;ZZZZLcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;Ljava/lang/String;Ljava/lang/String;)V
    .locals 13
    .parameter "url"
    .parameter "audioMuted"
    .parameter "autoPlay"
    .parameter "controls"
    .parameter "loop"
    .parameter "dimensions"
    .parameter "startStyle"
    .parameter "stopStyle"

    .prologue
    .line 1369
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    const/16 v3, 0x3ef

    invoke-virtual {v2, v3}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v12

    .line 1370
    .local v12, msg:Landroid/os/Message;
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    invoke-direct {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;-><init>()V

    .line 1371
    .local v1, properties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;
    const/4 v5, 0x0

    move v2, p2

    move/from16 v3, p3

    move/from16 v4, p4

    move/from16 v6, p5

    move-object/from16 v7, p7

    move-object/from16 v8, p8

    invoke-virtual/range {v1 .. v8}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->setProperties(ZZZZZLjava/lang/String;Ljava/lang/String;)V

    .line 1372
    new-instance v9, Landroid/os/Bundle;

    invoke-direct {v9}, Landroid/os/Bundle;-><init>()V

    .line 1373
    .local v9, data:Landroid/os/Bundle;
    const-string v2, "expand_url"

    invoke-virtual {v9, v2, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1374
    const-string v2, "action"

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ACTION;->PLAY_VIDEO:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ACTION;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$ACTION;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v9, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1375
    const-string v2, "player_properties"

    invoke-virtual {v9, v2, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 1376
    if-eqz p6, :cond_0

    .line 1377
    const-string v2, "expand_dimensions"

    move-object/from16 v0, p6

    invoke-virtual {v9, v2, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 1379
    :cond_0
    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;->isFullScreen()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 1381
    :try_start_0
    new-instance v11, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaActionHandler;

    invoke-direct {v11, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1382
    .local v11, intent:Landroid/content/Intent;
    invoke-virtual {v11, v9}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 1383
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v11}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1392
    .end local v11           #intent:Landroid/content/Intent;
    :cond_1
    :goto_0
    return-void

    .line 1385
    :catch_0
    move-exception v10

    .line 1386
    .local v10, e:Landroid/content/ActivityNotFoundException;
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "OrmmaView"

    invoke-virtual {v2, v3, v10}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0

    .line 1388
    .end local v10           #e:Landroid/content/ActivityNotFoundException;
    :cond_2
    if-eqz p6, :cond_1

    .line 1389
    invoke-virtual {v12, v9}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 1390
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    invoke-virtual {v2, v12}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method

.method public playVideoImpl(Landroid/os/Bundle;)V
    .locals 12
    .parameter "data"

    .prologue
    const/4 v11, 0x0

    .line 1308
    const-string v9, "player_properties"

    invoke-virtual {p1, v9}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v6

    check-cast v6, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;

    .line 1309
    .local v6, properties:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;
    const-string v9, "expand_dimensions"

    invoke-virtual {p1, v9}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v3

    check-cast v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;

    .line 1310
    .local v3, dimensions:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;
    const-string v9, "expand_url"

    invoke-virtual {p1, v9}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 1311
    .local v7, url:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v2

    .line 1312
    .local v2, context:Landroid/content/Context;
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getPlayer(Landroid/content/Context;)Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;

    move-result-object v8

    .line 1313
    .local v8, videoPlayer:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;
    invoke-virtual {v8, v6, v7}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setPlayData(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;Ljava/lang/String;)V

    .line 1314
    new-instance v5, Landroid/widget/FrameLayout$LayoutParams;

    iget v9, v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    iget v10, v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    invoke-direct {v5, v9, v10}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 1315
    .local v5, fl:Landroid/widget/FrameLayout$LayoutParams;
    iget v9, v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    iput v9, v5, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I

    .line 1316
    iget v9, v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    iput v9, v5, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 1317
    invoke-virtual {v8, v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1318
    new-instance v0, Landroid/widget/FrameLayout;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-direct {v0, v9}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 1319
    .local v0, backGround:Landroid/widget/FrameLayout;
    new-instance v9, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$5;

    invoke-direct {v9, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$5;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    invoke-virtual {v0, v9}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 1326
    const/16 v9, 0x65

    invoke-virtual {v0, v9}, Landroid/widget/FrameLayout;->setId(I)V

    .line 1327
    iget v9, v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    iget v10, v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    invoke-virtual {v0, v9, v10, v11, v11}, Landroid/widget/FrameLayout;->setPadding(IIII)V

    .line 1328
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getRootView()Landroid/view/View;

    move-result-object v9

    const v10, 0x1020002

    invoke-virtual {v9, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/FrameLayout;

    .line 1329
    .local v1, contentView:Landroid/widget/FrameLayout;
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v4

    .line 1330
    .local v4, fillparentVal:I
    new-instance v9, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v9, v4, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v0, v9}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1331
    invoke-virtual {v0, v8}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 1332
    const/4 v9, 0x4

    invoke-virtual {p0, v9}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->setVisibility(I)V

    .line 1333
    new-instance v9, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$6;

    invoke-direct {v9, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$6;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V

    invoke-virtual {v8, v9}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->setListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayerListener;)V

    .line 1351
    invoke-virtual {v8}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaPlayer;->playVideo()V

    .line 1352
    return-void
.end method

.method public raiseError(Ljava/lang/String;Ljava/lang/String;)V
    .locals 4
    .parameter "strMsg"
    .parameter "action"

    .prologue
    .line 1539
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    const/16 v3, 0x3f1

    invoke-virtual {v2, v3}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    .line 1540
    .local v1, msg:Landroid/os/Message;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 1541
    .local v0, data:Landroid/os/Bundle;
    const-string v2, "message"

    invoke-virtual {v0, v2, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1542
    const-string v2, "action"

    invoke-virtual {v0, v2, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1543
    invoke-virtual {v1, v0}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 1544
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1545
    return-void
.end method

.method public registerProtocol(Ljava/lang/String;)V
    .locals 2
    .parameter "protocol"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 639
    if-eqz p1, :cond_0

    .line 640
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mRegisteredProtocols:Ljava/util/HashSet;

    invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    .line 642
    :cond_0
    return-void
.end method

.method public resetContents()V
    .locals 8

    .prologue
    .line 1398
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getRootView()Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/FrameLayout;

    .line 1399
    .local v5, rootView:Landroid/widget/FrameLayout;
    const v7, 0x1020002

    invoke-virtual {v5, v7}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/FrameLayout;

    .line 1401
    .local v1, contentView:Landroid/widget/FrameLayout;
    if-nez v1, :cond_1

    .line 1422
    :cond_0
    :goto_0
    return-void

    .line 1405
    :cond_1
    invoke-static {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->enableFocusForChildren(Landroid/view/ViewGroup;)V

    .line 1406
    const/16 v7, 0x64

    invoke-virtual {v5, v7}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/FrameLayout;

    .line 1407
    .local v4, placeHolder:Landroid/widget/FrameLayout;
    const/16 v7, 0x65

    invoke-virtual {v5, v7}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    .line 1409
    .local v0, background:Landroid/widget/FrameLayout;
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    .line 1410
    .local v2, ormmaClickAwareParent:Landroid/view/ViewGroup;
    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    .line 1411
    invoke-virtual {v2}, Landroid/view/ViewGroup;->getParent()Landroid/view/ViewParent;

    move-result-object v6

    check-cast v6, Landroid/view/ViewGroup;

    .line 1412
    .local v6, superParent:Landroid/view/ViewGroup;
    if-eqz v6, :cond_2

    .line 1413
    invoke-virtual {v6, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1415
    :cond_2
    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    .line 1416
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->resetLayout()V

    .line 1417
    if-eqz v4, :cond_0

    .line 1418
    invoke-virtual {v4}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v3

    check-cast v3, Landroid/view/ViewGroup;

    .line 1419
    .local v3, parent:Landroid/view/ViewGroup;
    iget v7, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mIndex:I

    invoke-virtual {v3, v2, v7}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V

    .line 1420
    invoke-virtual {v3, v4}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    goto :goto_0
.end method

.method public resize(II)V
    .locals 4
    .parameter "width"
    .parameter "height"

    .prologue
    .line 1177
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    const/16 v3, 0x3e8

    invoke-virtual {v2, v3}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    .line 1178
    .local v1, msg:Landroid/os/Message;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 1179
    .local v0, data:Landroid/os/Bundle;
    const-string v2, "resize_width"

    invoke-virtual {v0, v2, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1180
    const-string v2, "resize_height"

    invoke-virtual {v0, v2, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1181
    invoke-virtual {v1, v0}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 1182
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1183
    return-void
.end method

.method public restoreState(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;
    .locals 6
    .parameter "savedInstanceState"

    .prologue
    const/4 v1, 0x0

    .line 1514
    const-string v0, "AD_DATA"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHtmlData:Ljava/lang/String;

    .line 1515
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHtmlData:Ljava/lang/String;

    const-string v3, "text/html"

    const-string v4, "utf-8"

    move-object v0, p0

    move-object v5, v1

    invoke-super/range {v0 .. v5}, Lcom/burstly/lib/util/UiSafeWebView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1516
    return-object v1
.end method

.method public saveState(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;
    .locals 2
    .parameter "outState"

    .prologue
    .line 1508
    const-string v0, "AD_DATA"

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHtmlData:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1509
    const/4 v0, 0x0

    return-object v0
.end method

.method public setInterstitial(Z)V
    .locals 1
    .parameter "isInterstitial"

    .prologue
    .line 1625
    invoke-super {p0, p1}, Lcom/burstly/lib/util/UiSafeWebView;->setInterstitial(Z)V

    .line 1626
    if-eqz p1, :cond_0

    const-string v0, "interstitial"

    :goto_0
    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mPlacementType:Ljava/lang/String;

    .line 1627
    return-void

    .line 1626
    :cond_0
    const-string v0, "inline"

    goto :goto_0
.end method

.method public setListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;)V
    .locals 0
    .parameter "listener"

    .prologue
    .line 608
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    .line 609
    return-void
.end method

.method public setMaxSize(II)V
    .locals 1
    .parameter "w"
    .parameter "h"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 629
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mUtilityController:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;

    invoke-virtual {v0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaUtilityController;->setMaxSize(II)V

    .line 630
    return-void
.end method

.method public setWebViewClient(Landroid/webkit/WebViewClient;)V
    .locals 2
    .parameter "client"

    .prologue
    .line 1122
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$WebViewWrapper;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mWebViewClient:Landroid/webkit/WebViewClient;

    invoke-direct {v0, p1, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$WebViewWrapper;-><init>(Landroid/webkit/WebViewClient;Landroid/webkit/WebViewClient;)V

    invoke-super {p0, v0}, Lcom/burstly/lib/util/UiSafeWebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 1123
    return-void
.end method

.method public show()V
    .locals 2

    .prologue
    .line 1203
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHandler:Landroid/os/Handler;

    const/16 v1, 0x3eb

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 1204
    return-void
.end method
